package com.njupt.simulation.utils;

public class CaculateFrequence_Band {
    /**
     * 计算中心频率
     * @param fmin  频率下限
     * @param fmax  频率上限
     * @return 中心频率
     */
    public static double caculatemiddlefrequence(double fmin,double fmax){
        double frequenccemiddle = ( fmax + fmin ) / 2;
        return frequenccemiddle;
    }

    /**
     * 计算带宽
     * @param fmin  频率下限
     * @param fmax  频率上限
     * @return  带宽
     */
    public static double caculateband(double fmin,double fmax){
        double band = fmax - fmin;
        return band;
    }
}
